﻿using System;

namespace CMS.Web.Manage.Aspx {
	public partial class Frame : System.Web.UI.Page {

		protected override void OnLoad(EventArgs e) {

#if DEBUG
			Model.Admin model2 = new CMS.Model.Admin();
			model2.LoginID = "admin";
			model2.Rank = 0;	// 超级管理员
			model2.Name = "管理员";
			model2.Tel = "12345678";
			model2.Email = "admin@mail.com";
			model2.Disabled = false;
			Core.Admin.Entity = model2;
#endif

			if (string.IsNullOrEmpty(Core.Admin.Name)) {
				Common.JScript.AlertAndRedirect(this.Page, "未登录或登录超时, 请重新登录 !", "/manage/aspx/login.aspx");
				return;
			}
		}
	}
}
